import request from '@/utils/request'

export function deleteInfo(id) {
  return request({
    url: `/mopLine/${id}`,
    method: 'delete'
  })
}
export function getMopLine(query) {
  return request({
    url: '/mopLine/page',
    method: 'get',
    params: query
  })
}
export function update(data) {
  return request({
    url: '/mopLine',
    method: 'put',
    data
  })
}
export function add(data) {
  return request({
    url: '/mopLine',
    method: 'post',
    data
  })
}
export function upper(id) {
  return request({
    url: `/mopLine/upper/${id}`,
    method: 'get'

  })
}
export function getDownOrder(id) {
  return request({
    url: `/mopLine/getDownOrder/${id}`,
    method: 'get'

  })
}

export function getMopLine3() {
  return request({
    url: '/mopLine/getType3List',
    method: 'get'

  })
}
